package com.vf.activity.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.vf.activity.mapper.ActivitiesTypeMapper;
import com.vf.activity.domain.ActivitiesType;
import com.vf.activity.service.IActivitiesTypeService;

/**
 * 活动类型Service业务层处理
 * 
 * @author LBS
 * @date 2025-06-05
 */
@Service
public class ActivitiesTypeServiceImpl implements IActivitiesTypeService 
{
    @Autowired
    private ActivitiesTypeMapper activitiesTypeMapper;

    /**
     * 查询活动类型
     * 
     * @param id 活动类型主键
     * @return 活动类型
     */
    @Override
    public ActivitiesType selectActivitiesTypeById(Long id)
    {
        return activitiesTypeMapper.selectActivitiesTypeById(id);
    }

    /**
     * 查询活动类型列表
     * 
     * @param activitiesType 活动类型
     * @return 活动类型
     */
    @Override
    public List<ActivitiesType> selectActivitiesTypeList(ActivitiesType activitiesType)
    {
        return activitiesTypeMapper.selectActivitiesTypeList(activitiesType);
    }

    /**
     * 新增活动类型
     * 
     * @param activitiesType 活动类型
     * @return 结果
     */
    @Override
    public int insertActivitiesType(ActivitiesType activitiesType)
    {
        return activitiesTypeMapper.insertActivitiesType(activitiesType);
    }

    /**
     * 修改活动类型
     * 
     * @param activitiesType 活动类型
     * @return 结果
     */
    @Override
    public int updateActivitiesType(ActivitiesType activitiesType)
    {
        return activitiesTypeMapper.updateActivitiesType(activitiesType);
    }

    /**
     * 批量删除活动类型
     * 
     * @param ids 需要删除的活动类型主键
     * @return 结果
     */
    @Override
    public int deleteActivitiesTypeByIds(Long[] ids)
    {
        return activitiesTypeMapper.deleteActivitiesTypeByIds(ids);
    }

    /**
     * 删除活动类型信息
     * 
     * @param id 活动类型主键
     * @return 结果
     */
    @Override
    public int deleteActivitiesTypeById(Long id)
    {
        return activitiesTypeMapper.deleteActivitiesTypeById(id);
    }

    @Override
    public List<ActivitiesType> selectActivitiesTypeListAll() {
        return activitiesTypeMapper.selectActivitiesTypeListAll();
    }
}
